﻿//定位到当前屏幕中间
function PitchDIV(pop) {
    $("#fullscreem").show();
    var left_w = ($(document).width() - pop.width()) / 2;
    var top_w = $('html').scrollTop() + ($(window).height() - pop.height()) / 2;
    pop.offset({ top: top_w, left: left_w });
    $("#fullscreem").css("height", $(document).height()-10);
}

//关闭所有的Div
function CloseContentDiv(id) {
    $(".contentDiv").hide();
    $("#fullscreem").hide();
    if (id != null && id != "" && id != "undefined") {
        id = id - 1;
        $(".contentDiv").eq(id).show();
        PitchDIV($(".contentDiv").eq(id));
    }
}